/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pojo;

import java.util.ArrayList;

/**
 *
 * @author Snowflake
 */
public class Table {

    private String name;
    private ArrayList<Property> idList;
    private ArrayList<Property> propertyList;
    private ArrayList<Foreignkey> foreignKeyList;
    private ArrayList<Row> rowList;

    public ArrayList<Row> getRowList() {
        return rowList;
    }

    public void setRowList(ArrayList<Row> rowList) {
        this.rowList = rowList;
    }

    public Table() {
        name = null;
        idList = null;
        propertyList = null;
        foreignKeyList = null;
        rowList = null;
    }

    public Table(String name, ArrayList<Property> idList, ArrayList<Property> propertyList, ArrayList<Foreignkey> foreignKeyList) {
        this.setName(name);
        this.setIdList(idList);
        this.setPropertyList(propertyList);
        this.setForeignKeyList(foreignKeyList);
    }

    public Table(String name, ArrayList<Property> idList, ArrayList<Property> propertyList, ArrayList<Foreignkey> foreignKeyList, ArrayList<Row> rowList) {
        this.name = name;
        this.idList = idList;
        this.propertyList = propertyList;
        this.foreignKeyList = foreignKeyList;
        this.rowList = rowList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<Foreignkey> getForeignKeyList() {
        return foreignKeyList;
    }

    public void setForeignKeyList(ArrayList<Foreignkey> foreignKeyList) {
        this.foreignKeyList = foreignKeyList;
    }

    public ArrayList<Property> getIdList() {
        return idList;
    }

    public void setIdList(ArrayList<Property> idList) {
        this.idList = idList;
    }

    public ArrayList<Property> getPropertyList() {
        return propertyList;
    }

    public void setPropertyList(ArrayList<Property> propertyList) {
        this.propertyList = propertyList;
    }
}
